package com.lry.basic.jvm.asm.type;

import aj.org.objectweb.asm.Type;

public class MethodType {
    public static void main(String[] args) {
        //参数String,int,返回值void
        Type methodType = Type.getMethodType("(Ljava/lang/String;I)V");
        Type[] argumentTypes = methodType.getArgumentTypes();
        for (Type t : argumentTypes) {
            //Type.OBJECT
            //Type.INT
            //参数的类型
            System.out.println(t.getSort());
            //参数大小 slot个数
            System.out.println(t.getSize());
            System.out.println("    " + t);
        }

        System.out.println(methodType.getReturnType());
    }
}
